<template >
  <div>
      <ul>
        <li @click="del">{{Name}}</li>
      </ul>
  </div>
</template>

<script>
export default {
  data () {
    return {
    }
  },
  props: ['Name', 'dexs'],
  methods: {
    del () {
      // 错误写法this.Name.splice(this.dexs, 1)
      this.$emit('dels', this.dexs)
    }
  }
}
</script>
<style scoped>
ul {
  width: 100%;
  height: 100%;
}
.btn {
  /* 鼠标改成手的形状 */
  cursor: pointer;
}
</style>
